package com.bit.www;

import java.util.SplittableRandom;

public class dog {
    private String name;
    private int age;
    private String color;

    public dog() {

    }

    public dog(String name, int age, String color) {
        this.name = name;
        this.age = age;
        this.color = color;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public void eat() {
        System.out.println(this.name + "正在吃狗粮......");
    }

    public static void staticFun() {
        System.out.println("staticFun......");
    }

    public void show() {
        System.out.println("狗名："+this.name +" 年龄："+this.age +" 颜色："+this.color);
    }

    @Override
    public String toString() {
        return "dog{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", color='" + color + '\'' +
                '}';
    }
}
